import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);
export default new Router({
  routes: [
    { path: "/", redirect: "/home" },
    {
      path: "/login",
      component: () => import("@/views/Login.vue"),
    },
    {
      path: "/home",
      component: () => import("@/views/Home.vue"),
      redirect: "/Home_Index",
      children: [
        {
          path: "/Home_Index",
          component: () => import("@/views/Home_Index.vue"),
          meta: { title: "临床知识库首页" },
        },
        {
          path: "/xy/JBDQ",
          component: () => import("@/views/XiYi/JBDQ.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/LCJY",
          component: () => import("@/views/XiYi/LCJY.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/LCLJ",
          component: () => import("@/views/XiYi/LCLJ.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/SSDQ",
          component: () => import("@/views/XiYi/SSDQ.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/LCZN",
          component: () => import("@/views/XiYi/LCZN.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/XSBG",
          component: () => import("@/views/XiYi/XSBG.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/YPSMS",
          component: () => import("@/views/XiYi/YPSMS.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/BLSJ",
          component: () => import("@/views/XiYi/BLSJ.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/YWZL",
          component: () => import("@/views/XiYi/YWZL.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/GLGX",
          component: () => import("@/views/XiYi/GLGX.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/FJDQ",
          component: () => import("@/views/ZhongYi/FJDQ.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/FJDQ2",
          component: () => import("@/views/ZhongYi/FJDQ2.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/JBDQ",
          component: () => import("@/views/ZhongYi/JBDQ.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/JBSY",
          component: () => import("@/views/ZhongYi/JBSY.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/JCLLSY",
          component: () => import("@/views/ZhongYi/JCLLSY.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/LCLJ",
          component: () => import("@/views/ZhongYi/LCLJ.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/MYYA",
          component: () => import("@/views/ZhongYi/MYYA.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/SYZD",
          component: () => import("@/views/ZhongYi/SYZD.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/XDYA",
          component: () => import("@/views/ZhongYi/XDYA.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/ZFSY",
          component: () => import("@/views/ZhongYi/ZFSY.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/ZHSY",
          component: () => import("@/views/ZhongYi/ZHSY.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/ZLFA",
          component: () => import("@/views/ZhongYi/ZLFA.vue"),
          meta: { title: "" },
        },

        // 维护
        {
          path: "/Home_Index_WH",
          component: () => import("@/views/Home_Index_WH.vue"),
          meta: { title: "临床知识库首页" },
        },
        {
          path: "/xy/JBDQ_WH",
          component: () => import("@/views/XiYi_WH/JBDQ.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/LCJY_WH",
          component: () => import("@/views/XiYi_WH/LCJY.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/LCLJ_WH",
          component: () => import("@/views/XiYi_WH/LCLJ.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/SSDQ_WH",
          component: () => import("@/views/XiYi_WH/SSDQ.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/LCZN_WH",
          component: () => import("@/views/XiYi_WH/LCZN.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/XSBG_WH",
          component: () => import("@/views/XiYi_WH/XSBG.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/YPSMS_WH",
          component: () => import("@/views/XiYi_WH/YPSMS.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/BLSJ_WH",
          component: () => import("@/views/XiYi_WH/BLSJ.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/YWZL_WH",
          component: () => import("@/views/XiYi_WH/YWZL.vue"),
          meta: { title: "" },
        },
        {
          path: "/xy/GLGX_WH",
          component: () => import("@/views/XiYi_WH/GLGX.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/FJDQ_WH",
          component: () => import("@/views/ZhongYi_WH/FJDQ.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/FJDQ2_WH",
          component: () => import("@/views/ZhongYi_WH/FJDQ2.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/JBDQ_WH",
          component: () => import("@/views/ZhongYi_WH/JBDQ.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/JBSY_WH",
          component: () => import("@/views/ZhongYi_WH/JBSY.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/JCLLSY_WH",
          component: () => import("@/views/ZhongYi_WH/JCLLSY.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/LCLJ_WH",
          component: () => import("@/views/ZhongYi_WH/LCLJ.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/MYYA_WH",
          component: () => import("@/views/ZhongYi_WH/MYYA.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/SYZD_WH",
          component: () => import("@/views/ZhongYi_WH/SYZD.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/XDYA_WH",
          component: () => import("@/views/ZhongYi_WH/XDYA.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/ZFSY_WH",
          component: () => import("@/views/ZhongYi_WH/ZFSY.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/ZHSY_WH",
          component: () => import("@/views/ZhongYi_WH/ZHSY.vue"),
          meta: { title: "" },
        },
        {
          path: "/zy/ZLFA_WH",
          component: () => import("@/views/ZhongYi_WH/ZLFA.vue"),
          meta: { title: "" },
        },
      ],
    },
  ],
});
